<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.earthrotate{
				width: 250px;
				height: 250px;
				background-image: url(images/a1.jpg);
				border-radius:125px ;
				
				/*设置坐标系*/
				position: relative;
				
				/**
				 *创建动画，设置参数
				 */
				animation: run 5s linear infinite;
			}
			
			/*鼠标移入地球暂停旋转，移出继续旋转*/
			.earthrotate:hover{
				animation-play-state: paused;/*暂停*/
			}
			/*设置关键针*/
			@keyframes run{
				from{transform: rotate(0deg);}
				to{transform: rotate(360deg);}
			}
		</style>
	</head>
	<body>
		<h3>地球旋转动画效果</h3>
		<div class="earthrotate"></div>
	</body>
</html>
